package com.michael.study.jetpack.extension

import android.content.SharedPreferences

/**
 * Description:
 *
 * Created by liuguoquan on 2020/6/24 17:45.
 */

fun SharedPreferences.open(block : SharedPreferences.Editor.() -> Unit) {
    val edit = edit()
    edit.block()
    edit.apply()
}